package com.mastercard.labs

import java.net.*;
class SmsService {

    def send(number, content) {
		log.info "send sms to ${number} with content: ${content}"
		def encodedContent = URLEncoder.encode(content)
		def data = new URL("http://137.132.247.154:8888/SMS/send.aspx?rep=${number}&msg=${encodedContent}").getText()
		log.info "sms sent, result = ${data}"
    }
}
